export default {
    namespaced:true,
    // 定义一个id用于跳转分类页在分类页使用
    state:{
        id:'1005000',
        storeIndex:0
        
    },
    mutations:{
        // 在首页使用的id
        getLayoutToCategoreId (state,payload) {
            state.id = payload
            console.log( '首页store',state.id);
        },
        getLayoutToCategoreIndex (state,payload) {
            state.storeIndex = payload
            console.log( '首页store',state.storeIndex);
        },
         // 在分类页点击时切换的id
         getCategoreId (state,payload) {
            state.id = payload
            console.log( '分类store',state.id);
        },
        getCategoreIndex (state,payload) {
            state.storeIndex = payload
            console.log( '分类store',state.storeIndex);
        },
    }
}